$header_height: 90px;
.warningInfo {
    padding: 10px 20px;
    width: 100%;
    height: 100%;
    color: #fff;
    overflow: hidden;
    background: url("~@/assets/images/warningInfo/bg1.jpg") no-repeat center;
    background-size: cover;

    &-label {
        border-left: 5px solid #00CCFF;
        margin-top: 16px;
        font-weight: bold;
        background: linear-gradient(135deg, #D9D9D970 20%, #ffffff00 100%);

        padding: 8px;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(250, 250, 250, 0.1);
    }


    &-header {
        width: 100%;
        height: $header_height;
        display: flex;
        justify-content: space-between;
        //border-bottom: 1px solid rgba(0, 98, 145, 1);
        &-flex {
            display: flex;
            align-items: center
        }

        &-img {
            width: 50px;
            margin-right: 8px;

        }

        &-img2 {
            width: 35px;
            margin-right: 8px;
        }

        &-ch {
            font-size: 28px;
        }

        &-en {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.4);
        }

        &-time {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.8);
        }

        &-timeHHssmm {
            font-size: 28px;
            color: #00CCFF;
        }

    }

    &-main {
        width: 100%;
        height: calc(100% - 98px);
        display: flex;
        margin-top: 8px;

        &-left {
            flex: 3;
            background-color: rgb(0 0 0 / 15%);
            margin-right: 8px;
            border-radius: 8px;
            border: 1px solid rgba(0, 98, 145, 0.5);
            padding: 16px;
            display: flex;
            flex-direction: column;

            &-type {
                display: flex;
                align-items: center;
                justify-content: center;
                margin: 10px 0;

                &-flex {
                    display: flex;
                    margin-right: 16px;
                    align-items: center;
                }
            }


            //list 状态内容
            &-content {
                overflow-y: scroll;
                overflow-x: hidden;
                padding-right: 10px;
                margin-top: 8px;
                flex: 1;

                .machine-container {
                    display: grid;
                    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
                    grid-gap: 10px;
                    width: 100%;
                }

                .machine-item-inner {
                    display: flex;
                    align-items: center;
                }

                .machine-item {
                    padding: 16px;
                    background: #00ccff26;
                    border-radius: 8px;
                    margin-top: 12px;
                    display: flex;
                    cursor: pointer;
                    box-shadow: 0 2px 4px rgba(250, 250, 250, 0.2);
                    flex-direction: column;

                    .machine-item-grid {
                        display: grid;
                        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                        grid-gap: 10px;
                    }

                    &-card {
                        display: flex;
                        align-items: center;
                        padding: 8px;
                        background-color: rgba(0, 98, 145, 0.5);
                        border-radius: 5px;
                        text-align: center;
                        box-shadow: 0 2px 4px rgba(250, 250, 250, 0.1);

                    }

                    &-name {
                        font-size: 20px;
                        font-weight: 600;
                        padding-bottom: 8px;
                        border-bottom: 1px solid rgba(0, 98, 145, 0.5);
                        width: 100%;
                        margin-bottom: 8px;
                    }

                    .card-icon {
                        margin-right: 3px;
                    }

                    .card-title {
                        font-size: 14px;
                    }
                }
            }

            span {
                font-size: 14px;
            }

            &-countStyle {
                display: flex;
                align-items: center;
                margin-right: 28px;
            }

            &-value {
                font-size: 28px;
                color: #00CCFF;
                display: inline-block;
                margin-right: 5px;

            }

            &-count {
                height: 80px;
                display: flex;
                justify-content: center;
            }

            &-icon {
                height: 65px;
                width: 65px;
                border-radius: 50%;
                background-color: #ffffff21;
                margin-right: 8px;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 2px 4px rgba(250, 250, 250, 0.3);
            }
        }
    }

    //右边
    .warningInfo-main-right {
        flex: 1;
        //height: 100%;
        display: flex;
        flex-direction: column;
        //区域温湿度


        .warningInfo-regional {
            background-color: rgb(0 0 0 / 15%);
            border-radius: 8px;
            border: 1px solid rgba(0, 98, 145, 0.5);
            padding: 0 16px;
            display: flex;
            height: calc(100% / 2 - 5px);
            margin-bottom: 10px;
            flex-direction: column;

            &-main {
                display: flex;
                flex-direction: column;
                flex: 1;
            }

            &-list {
                margin: 10px 0;
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: repeat(3, minmax(50px, auto)) minmax(50px, auto); /* Adjust minmax values as needed */
                gap: 8px;
                flex: 1;


                &-item {
                    background: rgba(49, 167, 255, 0.298);
                    border-radius: 8px;
                    display: flex;
                    align-items: center;
                    padding: 0 16px;
                    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
                    /* 针对最后一个元素（第7个）的样式 */
                    &.full-width-item {
                        grid-column: span 2;
                    }

                    &-box {
                        width: 100%;
                        display: flex;
                        flex-direction: column;
                        margin-left: 20px;
                    }

                    &-flex {
                        font-size: 24px;
                        width: 80%;
                        display: flex;
                        justify-content: space-between;
                        margin-top: 3px;

                        :nth-child(1) {
                            margin-right: 18px;

                            span {
                                font-size: 14px;
                                margin-left: 3px;
                            }
                        }

                        :nth-child(2) {
                            span {
                                font-size: 14px;
                                margin-left: 3px;
                            }
                        }

                    }
                }
            }
        }

        //设备异常提醒
        .warningInfo-alert {
            background-color: rgb(0 0 0 / 15%);
            border-radius: 8px;
            border: 1px solid rgba(0, 98, 145, 0.5);
            padding: 0 16px;
            display: flex;
            height: calc(100% / 2 - 5px);

            &-main {
                width: 100%;
                display: flex;
                flex-direction: column;
            }

            &-list {
                overflow-y: hidden;
                overflow-x: hidden;
                flex-grow: 1;
                display: flex;
                flex-direction: column;

                &-header {
                    display: flex;
                    background: #00ccff26;
                    border-bottom: 1px solid rgba(0, 98, 145, 0.5);
                    margin-top: 10px;
                }

                &-header > div, &-item > div, {
                    padding: 8px;
                    text-align: left;
                    flex: 1; /* 让每个 div 的宽度自适应 */
                    white-space: nowrap; /* 防止文本换行 */
                    overflow: hidden;
                    text-overflow: ellipsis; /* 文本溢出时显示省略号 */
                }

                &-item {
                    display: flex;
                    font-size: 12px;
                    border-bottom: 1px solid rgba(0, 98, 145, 0.5);
                }

                &-main {
                    flex-grow: 1;
                    width: 100%;
                    overflow-y: scroll;
                    overflow-x: hidden;

                }
            }
        }
    }

    //全屏按钮
    ::v-deep {
        .el-button--primary {
            background: #009fff61;
            border: none;
            margin-right: 16px;
        }

    }
}

//滚动条样式
.scroll-content::-webkit-scrollbar {
    width: 5px; /* 滚动条宽度 */
}

.scroll-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3); /* 滚动条的颜色 */
    border-radius: 4px; /* 滚动条的圆角 */
}

.scroll-content::-webkit-scrollbar-track {
    background: transparent; /* 轨道背景设置为透明 */
}


